package io.renren.modules.wyzs.mobile_EnumMoudle;

public enum EnumItemState {
    UnUse(0),
    Use(1),
    Forbid(2);
	private int value;
	private EnumItemState(int value) {
		this.value = value;
	}
	public int getValue() {
		return value;
	}
	public static EnumItemState getEnumFromString(String string) {
		if (string != null) {
			return Enum.valueOf(EnumItemState.class, string);
		}
		return null;
	}
	
	public static EnumItemState valueOfString(String value) {
		if (value.equals("0")) {
			return UnUse;
		} else if (value.equals("1")) {
			return Use;
		} else{
			return Forbid;
		}

	}
}
